package service;

import com.sun.org.apache.xalan.internal.xsltc.compiler.util.StringStack;
import dao.Student;
import dao.Teacher;

public class PersonService {
    public static String getTeacherName(String tid){
        String result=Teacher.getNameById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherSchool(String tid){
        String result=Teacher.getSchoolById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherMajor(String tid){
        String result=Teacher.getMajorById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherGrade(String tid){
        String result=Teacher.getGradeById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherDegree(String tid){
        String result=Teacher.getDegreeById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherGender(String tid){
        String result=Teacher.getGenderById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherBirthday(String tid){
        String result=Teacher.getBirthdayById(tid);
        return result!=null?result:"";
    }
    public static String getTeacherHeadPath(String tid){
        String result=Teacher.getHeadPathById(tid);
        return result!=null?result:"";
    }
    
    public static String getStudentName(String id){
        String result= Student.getNameById(id);
        return result!=null?result:"";
    }

    public static String getStudentSchool(String id) {
        String result=Student.getSchoolById(id);
        return result!=null?result:"";
    }

    public static String getStudentMajor(String id) {
        String result=Student.getMajorById(id);
        return result!=null?result:"";
    }

    public static String getStudentGrade(String id) {
        String result=Student.getGradeById(id);
        return result!=null?result:"";
    }

    public static String getStudentDegree(String id) {
        String result=Student.getDegreeById(id);
        return result!=null?result:"";
    }

    public static String getStudentGender(String id) {
        String result=Student.getGenderById(id);
        return result!=null?result:"";
    }

    public static String getStudentBirthday(String id) {
        String result=Student.getBirthdayById(id);
        return result!=null?result:"";
    }

    public static String getStudentHeadPath(String id) {
        String result=Student.getHeadPathById(id);
        return result!=null?result:"";
    }
}
